The count method returns the number of data values inside TimeSeries object.
var count();
The method returns a numeric value representing number of data values.
The following example demonstrates the use of high() method.
function calculate(beginIndex, endIndex)
{
//get the TimeSeries object instance for the symbol to which the study is attached to
var timeSeries = Chart.getTimeSeriesData(this.getAttachedSymbol());
if(timeSeries != null)
{
var count = timeSeries.count();
}
}
Copyright © 2006-2009 ActiveTick LLC